package org.dom4j.io;

// can't use this with gwt
// import java.io.Writer;

import org.dom4j.Document;

public class XMLWriter {
  
  StringBuffer writer;
  public XMLWriter(Object writer, OutputFormat format) {
    this.writer = (StringBuffer)writer;
  }
  
  public void write(Document doc) {
    writer.append(doc.asXML());
  }
  
  public void close() {
  }
}
